﻿/*----------------------------------------------------------------
// Copyright (C) 2011 上海
// 版权所有。 
//
// 文件名：CashRegisterInfo
// 文件功能描述：现金出纳表业务逻辑层
//
// 
// 创建标识：2012-06-12 王冲
//
// 修改标识：
// 修改描述：
//
//
//----------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO.WaiGaoQiao;
using System.Data;

namespace Model.WaiGaoQiao
{
    public class CashRegisterInfo
    {
        public string year
        {
            get;
            set;
        }

        public string month
        {
            get;
            set;
        }
        private DataAccessCashRegister dar;
        /// <summary>
        /// 获取现金出纳表
        /// </summary>
        /// <returns></returns>
        public DataSet BindList(int pagesize, int startindex, CashRegisterInfo info, string tablename, out int count)
        {
            object[] obj = new object[2];
            obj[0] = info.year;
            obj[1] = info.month;
            dar = new DataAccessCashRegister();
            return dar.BindList(pagesize, startindex, obj, tablename, out count);
        }
        /// <summary>
        /// 获取现金出纳表
        /// </summary>
        /// <returns></returns>
        public DataSet GetListAll(CashRegisterInfo info, string tablename)
        {
            object[] obj = new object[2];
            obj[0] = info.year;
            obj[1] = info.month;
            dar = new DataAccessCashRegister();
            return dar.GetListAll(obj, tablename);
        }
    }
}
